



<div class="heading-buttons">
	<h3 class="glyphicons comments">
		<i></i> News Report
	</h3>



</div>
<div class="separator"></div>




<div class="widget widget-2 widget-body-white finances_summary">
	<div class="widget-head">
		<h4 class="heading glyphicons comments">
			<i></i> News Report
		</h4>

	</div>
	<div class="widget-body">
		<div class="row-fluid">


			<fieldset>

<?php if($news['all']){?>
			
				<div class="separator bottom">
					<div class="pull-right  margin-bottom">

					<form name="action" method="POST"
				action="<?=base_url(); ?>secure/reports/news_report">
				<input type="text" name="search"> 
				<select name="order" onchange="this.form.submit()">
					<option value="">-- Select --</option>
					<option value="search">Search</option>
					<option value="inactive">Inactive</option>
					<option value="active">Active</option>
					<option value="featured">Featured</option>
					
				</select>
			</form>

					</div>
				</div>

				<table class="table table-bordered table-striped" cellspacing='0'
					width="100%">
					<!-- Table Header -->
					<thead>
						<tr>
				
					<th width="20%">Posted On</th>
					<th width="30%">Title</th>
					<th width="90%">Description</th>
					<th width="10%">Status</th>
					<th width="10%">ACTION</th>
				</tr>
					</thead>
					<!-- Table Header -->
					<!-- Table Body -->
					<?php if($news['all']){?>
				 <?php foreach ($news['all'] as $news) : ?>
				<tr>
				
					<td><?= $news->posted_on;?></td>
					<td><?= substr($news->title,0,25);?> </td>
					<td align="center"><?= substr(strip_tags($news->description),0,60);?>  </td>
						<?php if($news->status ==51){?>
								<td align="center">
								<i class="glyphicons no-js thumbs_up"><i></i></i></td>
							<?php }else{?>
								<td align="center"><i class="glyphicons no-js thumbs_down"><i></i></i></td>
							<?php }?>
								
								<td align="right">
								
								
								<div class="btn-group">
				                <button class="btn btn-inverse dropdown-toggle" data-toggle="dropdown">Click To Modifie<span class="caret"></span></button>
				                <ul class="dropdown-menu">
				                
				               
				                  <li><a href="<?= base_url(); ?>secure/reports/news_report/change_news_status/<?= $news->status;?>/<?= $news->id; ?>"  <?php if($this->config->item('mode')=='DEMO'){?>onclick="alert ('Sorry! Demo mode '); return false;" <?} else?>onclick="return confirm('Are you sure ?');"  ><i class="icon-thumbs-up"></i> Make Active</a></li>
				                  <li><a href="<?= base_url(); ?>secure/reports/news_report/change_news_status/<?= $news->status;?>/<?= $news->id; ?>" <?php if($this->config->item('mode')=='DEMO'){?>onclick="alert ('Sorry! Demo mode '); return false;" <?} else?>onclick="return confirm('Are you sure ?');"  ><i class="icon-thumbs-down"></i> Make Inactive</a></li>
				                 <li> 
				                  </li>
				                  <li><a href="<?= base_url(); ?>secure/reports/reviews_report/delete_reviews/<?= $news->id;?>" <?php if($this->config->item('mode')=='DEMO'){?>onclick="alert ('Sorry! Demo mode '); return false;" <?} else?>onclick="return confirm('Are you sure ?');" ><i class="icon-minus"></i> Delete</a></li>
				                  
				                </ul>
				            </div>
								
								<!-- 
								<form name="action" method="POST"
				action="<?=base_url(); ?>secure/reports/news_report/action">
				<input type="hidden" name="news_id" value="<?= $news->id;?>">
					<select name="action" onchange="this.form.submit()">
							<option value="">-- Action --</option>
							<option value="inactive">Make Inactive</option>
							<option value="active">Make Active</option>
							<option value="edit">Edit</option>
							<option value="delete">Delete</option>
							
					</select>
					</form>	
					 -->
					 						</td>
						</tr>
						<!-- Table Row -->
					<?php endforeach; }?>
			<?php }else { echo "No Data found....";}?>
					</tbody>
					<!-- Table Body -->
				</table>

			</fieldset>

		</div>
<div class="pagination pull-right">
		<ul>
			<li><?php  echo $this->pagination->create_links(); ?>
			</li>
		</ul>
		</div>
	</div>
</div>
















   
   
